package com.project.springboot.exception;

import lombok.Getter;

/**
 * description: 系统自定义异常
 * @author 朱正磊
 * @date 2019-10-17 17:48:31
 */
@Getter
public class ResponseException extends RuntimeException {

    private static final long serialVersionUID = -7245127840385027063L;

    private final Integer code;

    public ResponseException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public ResponseException(String message) {
        super(message);
        this.code = 500;
    }

}
